package com.yuyou.fn.portal.repository;

import com.yuyou.fn.portal.entity.OuterCourseClass;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/**
 * Created by wens on 2017/4/6.
 */
public interface OuterCourseClassRepository extends MongoRepository<OuterCourseClass,Long> {
    List<OuterCourseClass> findByGradeName(String gradeName);
    List<OuterCourseClass> findByClassNameLike(String className, PageRequest pageRequest);
    OuterCourseClass findByClassId(Long classId);
}
